package net.wanho.dao.impl;

import net.wanho.dao.UserDao;
import net.wanho.entity.User;
import org.wanho.jdbc.JdbcTemplate;
import org.wanho.jdbc.JdbcUtil;

/**
 * Author：汤小洋
 * Date：2025-06-13 16:20
 * Description：<描述>
 */
public class UserDaoImpl implements UserDao {

    JdbcTemplate<User> jt = new JdbcTemplate<>();

    @Override
    public void insertUser(User user) {
        String sql = "insert into t_user values(null,?,?,?,?,?,?)";
        jt.update(sql, user.getName(), user.getPwd(), user.getAge(), user.getSex(), user.getHeight(), user.getBirthday());
    }

}
